import request from '@/utils/request';

export const getSuggestAPI = (q: string) => {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q,
    },
  });
};

export const getResultsAPI = ({ page = 1, per_page = 10, q = '' }) => {
  return request({ url: '/v1_0/search', params: { page, per_page, q } });
};
